#pragma once

#include "controls.h"
#include "shapes.h"


class Button
{
protected:
	Rectangle2D Button1;
	Rectangle2D HoverBox; //setActive to show that it is highlighted
	Vector2D HBCorner1;
	Vector2D HBCorner2;

	bool isActive;
	bool isHovering;

	Vector2D Location;

	char theText[15];



	bool hovering(MousePointer mouse);

	void onClick();


public:

	Button();
	~Button();

	void Initialise(float top, float left, float bottom, float right, char text[15]);
	void Update(MousePointer mouse);
	void Draw();

	bool getActive();

};

class ViewButton: public Button
{
};

class OptionsButton: public Button
{
};

class ExitButton: public Button
{
};